﻿import React from 'react'
import ReactDOM from 'react-dom'
import SelectDom from '../component/SelectDom';
import mirror, {actions, connect} from 'mirrorx'
import {Row, Col, Button, Input,Form,Select, Table, Icon} from 'antd';
import { FormattedMessage} from 'react-intl';
const FormItem = Form.Item;
const Option = Select.Option;

class App extends React.Component { 
    constructor(props) {
        super(props);

        let initProps = global.__initProps ||{};
        this.state = {
            count:initProps.initialCount
        };
    }

    componentDidMount(){
   
    }
 
    increment = ()=>{
        this.setState({ count: this.state.count + 1 });
    }
 
    render() {
        const {initProps={}} = this.props;

        return (
            <div className="">
                <span>the count is: </span>
                <span className="mr20">{this.state.count}</span>
                <Button onClick={this.increment}>Add</Button>
            </div>
        )
    }
}
 
module.exports = App;